package main

import (
	"fmt"
	"gitee.com/scottq/go-framework/src/miscs"
	"os"
	"time"
)

func main() {
	go miscs.CatchSysSig(func(sig os.Signal) {
		fmt.Println("catch signal", sig)
		time.Sleep(time.Second)
		os.Exit(1)
	}, miscs.DefSysSigs...)

	time.Sleep(time.Minute * 10)
}
